<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Form表单</title>
    <script type="text/javascript">
        //为false表示没有点击
      /*var isFlag = false; //表单是否已经提交标识，默认为false

      function submitFlag() {
        if (!isFlag) {
          isFlag = true;
          return true;
        } else {
          return false;
        }
      }*/
    </script>
</head>

<body>
<form action="${pageContext.request.contextPath}/DoFormServlet"  method="post" <%--onsubmit="return submitFlag()"--%> >
    用户名：<input type="text" name="userName">
    <input type="hidden" value="${sessionToken}" name="sessionToken"/>
    <input type="submit" value="提交" id="submit">
</form>
</body>
</html>
